require "utility_functions"

local msgQueue = {}
local innerData = {}
function msgQueue.pushMsg(msg)
	table.insert(innerData,msg)
end

function msgQueue.popMsg()
	local ret = shallowcopy(innerData[1])
	table.remove(innerData,1)
	return ret
end

function msgQueue.getTop()
	return innerData[1]
end

return msgQueue